package com.naml.domain;

/**
 * @author marin
 * @version 1.0
 * @date 2025/4/16 22:18
 */
public class Person {

    private String name;
    private int age;

    @Deprecated
    public static String hobby = "唱歌";

    @Deprecated
    public void deprecated(){
        System.out.println("我是一个过时的方法");
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
